<div class="dantocs index">
<h2><?php __('Dân Tộc');?></h2>
<p>
<?php
echo $paginator->counter(array(
/*'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)*/
));
?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php echo $paginator->sort('STT');?></th>
	<th><?php echo $paginator->sort('Dân tộc', 'dantoc.dantoc');?></th>
	<th class="actions"><?php __('Thao tác');?></th>
</tr>
<?php
$i = 0;
foreach ($dantocs as $dantoc):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $dantoc['Dantoc']['id']; ?>
		</td>
		<td>
			<?php echo $dantoc['Dantoc']['dantoc']; ?>
		</td>
		<td class="actions">
			<?php echo $html->link(__('Hiển thị', true), array('action' => 'view', $dantoc['Dantoc']['id'])); ?>
			<?php echo $html->link(__('Sửa', true), array('action' => 'edit', $dantoc['Dantoc']['id'])); ?>
			<?php echo $html->link(__('Xóa', true), array('action' => 'delete', $dantoc['Dantoc']['id']), null, sprintf(__('Bạn có chắc muốn xóa không?', true), $dantoc['Dantoc']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Thêm dân tộc', true), array('action' => 'add')); ?></li>
		<li><?php echo $html->link(__('danh sách sinh viên', true), array('controller' => 'sinhviens', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm sinh viên mới', true), array('controller' => 'sinhviens', 'action' => 'add')); ?> </li>
	</ul>
</div>
